import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/Index'
import Login from '@/pages/login/Login'
import Menu from '@/pages/Menu'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      meta:{
        title:'首页'
      }
    },
    {
      path: '/index',
      name: 'Index',
      component: Index,
      meta:{
        title:'首页'
      }
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
      meta:{
        title:'登录中心'
      }
    },
    {
      path: '/menu',
      name: 'Menu',
      component: Menu,
      meta:{
        title:'餐桌中心'
      }
    },
  ]
})
